package com.TingBer.view;

import com.TingBer.model.Connection;
import com.TingBer.view.buttons.AddConnectionButton;
import com.TingBer.view.buttons.SettingButton;

import javax.swing.*;
import java.awt.*;
import java.util.List;

public class SidePanel extends JPanel {
    private List<Connection> connectionList;
    JPanel headerPanel=new JPanel();
    AddConnectionButton addButton=new AddConnectionButton();
    SettingButton settingButton=new SettingButton();
    public SidePanel(){
        super();
        this.setSize(300,500);
        render();
    }

    public void render(){
        headerPanel.setLayout(new FlowLayout(FlowLayout.LEFT,10,5));
        headerPanel.add(addButton);
        headerPanel.add(settingButton);
        this.add(headerPanel);
    }
}
